// 单个事件监听配置
import type { PlatformTypeValue } from '../interfaces'

export interface EventListenerConfig {
  selector: string
  container?: string
  eventType: string
  capture?: boolean
  handler: (e: JQuery.ClickEvent, ...args: any[]) => void
  context?: JQuery
}
// 页面事件配置
export interface PageEventConfig {
  [pageType: string]: EventListenerConfig[]
}
// 平台事件配置
export type PlatformEventConfig = Partial<Record<PlatformTypeValue, PageEventConfig>>
